// JointFactory.cpp: implementation of the JointFactory class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "phsshare.h"
#include "JointFactory.h"
#include "JointRegularSet.h"
#include "PersistentFacade.h"
#include "KnownPartSet.h"
#include "ProjectManager.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

JointFactory& GetJointFactory()
{
	ASSERT(GetProjectManager().CurProject());
	return GetProjectManager().CurProject()
		->versionController()->CurJointGenerator();
}
